package com.cn.action;

import java.util.ArrayList;
import java.util.Map;

import com.cn.service.CityService;

public class CityAction {
	private String parentId;
	private String level;
	ArrayList<Map<String, Object>> list;
	private CityService cityService=null;
	public ArrayList<Map<String, Object>> getList() {
		return list;
	}
	public void setList(ArrayList<Map<String, Object>> list) {
		this.list = list;
	}
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	public String getLevel() {
		return level;
	}
	public void setLevel(String level) {
		this.level = level;
	}
	
	public CityService getCityService() {
		return cityService;
	}
	public void setCityService(CityService cityService) {
		this.cityService = cityService;
	}
	public String getCity(){
		this.setList(cityService.getCity(parentId, level));
		return "success";
	}
}
